<?php
 header("Content-Type: text/html; charset=gb2312");
 //echo getcwd();

 $dir = '.';
 /*
 if(is_dir($dir)){
 	if($dh = opendir($dir)){

 		while(false !== ($file = readdir($dh))){
 			echo $file.'<br>';

 		}
 		closedir($dh);
 	}

 }
 */
 //print_r(scandir($dir,1));

 /*
 $fp = fopen("5.txt",'r');
 if(!$fp){
 	echo 'error';
 }
 while(false !== ($char = fgetc($fp))){

 	echo $char."\n";
 }
 */

 //echo file_get_contents("5.txt");

 //print_r(file("5.txt"));

 /*
 $fp = fopen("5.txt","rb"");
 $contents = fread($fp,filesize("5.txt"));
 closedir($fp);
 echo $contents;
 */

 /*
 $fp = fopen("5.txt","rb");
 $info = fstat($fp);
 fclose($fp);
 print_r($info);
 */

 /*
 $filename = "6.txt";
 $string = "哈哈这是测试文件\n";
 if(is_writable($filename)){

 	if(!$handle = fopen($filename,"a+b")){
 		exit("error fopen");
 	}

 	if(fwrite($handle,$string)===false){
 		exit("error write");
 	}

 	echo 'write success';

 }else{

 	exit("unwritable");
 }
 */

 //echo (int)is_writable("5.txt");

 //$path_info = pathinfo("./5.txt");
 //print_r($path_info);

 /*
 //获取文件真实属性 通过文件头来判断
 $file = "1.jpg";
 $fp = fopen($file,"rb");
 $bin = fread($fp,2); // 只读2字节
 fclose($fp);

 $str_info = unpack("C2chars",$bin);
 $type_code = intval($str_info['chars1'].$str_info['chars2']);

 echo $type_code;
 */

 //echo realpath("../lab/class_4.php");

 /*
 echo getcwd().'<br>';
 chdir("socket");
 echo getcwd().'<br>';
 chdir("../../public");
 echo getcwd();
 */

echo md5("luoyanbo-1120210379");





?>